<!DOCTYPE html>
<html lang="en">

  <head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>transform-origin</title>
  </head>
  <style>
    /* 
    transfrom-origin转换原点
      1.一个值：设置x轴原点
      2.两个值：设置x轴和y轴的原点
      3.默认原点在中心：center,center
      4.属性值可以使百分比
      5.属性值也可以是x轴为left,center,right,y轴为top,center,bottom
     */
    .div1 {
      width: 100px;
      height: 100px;
      background-color: pink;
      margin: 100px auto;
      transition: transform 2s;
      /* 
      transform-orgin:center center
       */
      transform-origin: left top;
    }

    .div1:hover {
      transform: scale(2);
    }
  </style>

  <body>
    <div class="div1">div1</div>
  </body>

</html>